﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterCP.master" AutoEventWireup="true" CodeBehind="ViewWebmasterRequest.aspx.cs" Inherits="University.Workshop.WebApp.ViewWebmasterRequest" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style=' margin-bottom:20px;background-color: #4b6c9e; color: White;'>
        <h4 style='margin-top: 4px; font-size: large; color: White'>
           &nbsp;>Webmaster request information
        </h4>
    </div>
    <asp:MultiView runat="server" ID="MultiViewRequestInfo">
        <asp:View runat="server" ID="ShowRequest">
            <div>
                <table>
                    <tr>
                        <td style='width: 120px; text-align: right;'>
                            <label>
                                Candidate:</label>
                        </td>
                        <td style="text-align: left;">
                            <asp:LinkButton runat="server" ID="LinkUser"></asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td style='width: 120px; text-align: right;'>
                            <label>
                                Request Date:</label>
                        </td>
                        <td style="text-align: left;">
                            <asp:Label ForeColor="black" runat="server" ID="lblDate"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="margin-top: 10px; margin-bottom: 10px;">
                <h4 style='margin-top: 4px; background-color: #4b6c9e; font-size: large; color: White;
                    width: 320px; font-size: medium; -moz-border-radius: 5px; -webkit-border-radius: 5px;
                    border-radius: 5px;'>
                    Skills
                </h4>
            </div>
            <div style="margin-left: 20px; margin-bottom: 10px;">
                <asp:TextBox ID="txtSkills" TextMode="MultiLine" Height="170" Width="425" runat="server"
                    ReadOnly="true" />
            </div>
            <div style="margin-bottom: 10px;">
                <h3>
                    The candidate wants the folowing privileges:
                </h3>
                &nbsp;<asp:Label CssClass="labels" runat="server" ID="lblReplies" Text="&nbsp;Reply tickets&nbsp;"
                    BorderWidth="1px" BorderColor="black" ToolTip="This is the permission to reply tickets sent by customers" />&nbsp;
                <asp:Label CssClass="labels" ID="lblWebmasters" runat="server" Text="&nbsp;Set webmasters&nbsp;"
                    BorderWidth="1px" BorderColor="black" ToolTip="This is the permission to vote for new webmaster requests" />
                <style>
                    .labels
                    {
                        -moz-border-radius: 4px;
                        -webkit-border-radius: 4px;
                        border-radius: 4px;
                    }
                </style>
            </div>
            <div style="margin-top: 10px; margin-bottom: 10px;">
                <h4 style='margin-top: 4px; background-color: #4b6c9e; font-size: large; color: White;
                    width: 320px; font-size: medium; -moz-border-radius: 5px; -webkit-border-radius: 5px;
                    border-radius: 5px;'>
                    Votes
                </h4>
            </div>
            <div style="margin-bottom: 40px;">
                <asp:ScriptManager runat="server" ID="scriptMan" />
                <asp:UpdatePanel runat="server">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="imgBtnPositive" />
                        <asp:PostBackTrigger ControlID="imgBtnNegative" />
                    </Triggers>
                    <ContentTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label runat="server" ID="lblPositives" ForeColor="green"></asp:Label>
                                </td>
                                <td>
                                    <asp:ImageButton ID="imgBtnPositive" runat="server" ToolTip="Vote Positive this request"
                                        ImageUrl="Images/PositiveVote.jpg" Height="30px" OnClick="imgBtnPositive_Click" />
                                </td>
                                <td style="width: 20px;">
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="lblNegatives" ForeColor="red"></asp:Label>
                                </td>
                                <td>
                                    <asp:ImageButton ID="imgBtnNegative" runat="server" ToolTip="Vote Negative this request"
                                        ImageUrl="Images/NegativeVote.jpg" Height="30px" OnClick="imgBtnNegative_Click" />
                                </td>
                                <td style="width: 5px;">
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="lblBalance" Font-Italic="True" ForeColor="gray" CssClass="balance"
                                    ToolTip="Total votes"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <div style="margin-top: 5px;">
                            <asp:Label runat="server" ID="lblVoteInfo" ForeColor="gray" Font-Italic="True" Text="Note that now you can't vote, because you already have voted this request"/>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </asp:View>
        <asp:View runat="server" ID="NotShowRequest">
            <h3 style="margin-bottom: 40px;">You don't have sufficient privileges to vote requests</h3>
        </asp:View>
        <asp:View runat="server" ID="NoRequestId">
            <h3 style="margin-bottom: 40px;">The webmaster request that you have requested doesn't exists</h3>
        </asp:View>
        <asp:View runat="server" ID="RequestFinished">
            <h3 style="margin-bottom: 40px; width: 500px;">The webmaster request is finished</h3>
        </asp:View>
    </asp:MultiView>
</asp:Content>
